enum IpAddrType {
    V4,
    V6,
}

fn show_ip_type(ip_type: IpAddrType) -> String{
    match ip_type {
        IpAddrType::V4 => String::from("ipv4"),
        IpAddrType::V6 => String::from("ipv6"),
    }
}

fn main() {

    println!("{}", show_ip_type(IpAddrType::V4));
}
